<template>
    <div>
        <input type="text" v-model.number="inputNumber">
        <button @click="addNumber">+</button>
    </div>
</template>

<script>
export default {
  data () {
    return {
      inputNumber: 0
    }
  },
  methods: {
    addNumber () {
    // this.$store.commit('add', this.inputNumber)
      this.$store.dispatch('addAsync', this.inputNumber)
    }
  }
}
</script>
